<%-- 
    Document   : list
    Created on : 2014-1-22, 15:32:05
    Author     : chensy
--%>
<%@page contentType="text/html; charset=UTF-8" session="false" %>
<%@include  file="/WEB-INF/jspf/import.jspf"%>
<div class="pageHeader">
    <form onsubmit="return navTabSearch(this);" id="pagerForm" name="searchForm" method="post">
        <input type="hidden" name="pageNum" value="${pager.pageNo}" />
        <input type="hidden" name="pageSize" value="${pager.pageSize}" />
        <input type="hidden" name="orderField" value="${orderField}" />
        <input type="hidden" name="orderDirection" value="${orderDirection}" />
        <div class="searchBar">
            <table class="searchContent">
                <tbody>
                    <tr>
                        <td><label>车友会Id：</label><input type="text" name="oClubId" value="${param.oClubId}" class="textInput"></td>
                        <td><label>车友会名称：</label><input type="text" name="name" value="${name}" class="textInput"></td>
                        <td><label>地区：</label><input type="text" name="area" value="${area}" class="textInput"></td>
                        <td colspan="2"><label>加入时间：</label>
                            <input type="text" value="<fmt:formatDate value="${beginDate}" pattern="yyyy-MM-dd HH:mm:ss"/>" name="beginDate" datefmt="yyyy-MM-dd 00:00:00" class="date" readonly="true">
                            至
                            <input type="text" value="<fmt:formatDate value="${endDate}" pattern="yyyy-MM-dd HH:mm:ss"/>" name="endDate" datefmt="yyyy-MM-dd 23:59:59" class="date" readonly="true">
                        </td>
                    </tr>
                    <tr>
                        <td><label>车友会域名：</label><input type="text" name="clubUrl"  value="${param.clubUrl}" class="textInput"></td>
                        <td><label>品牌：</label><input type="text" name="brand"  value="${brand}" class="textInput"></td>
                        <td><label>车系：</label><input type="text" name="series"  value="${series}" class="textInput"></td>
                        <td></td>
                    </tr>
                    <tr>
                        <td><label>状态：</label><select name="status">
                                <option value="-1" ${status==-1?"selected":""}>请选择</option>
                                <option value="0" ${status==0?"selected":""}>未发布</option>
                                <option value="1" ${status==1?"selected":""}>发布</option>
                            </select></td>
                        <td><label>分类：</label><select name="tagId">
                                <option value="-1" ${tagId==-1?"selected":""}>请选择</option>
                                <c:forEach items="${tags}" var="o">
                                    <option value="${o.tagId}" ${tagId==o.tagId?"selected":""}>${o.tagName}</option>
                                </c:forEach>
                            </select></td>
                        <td><label>分区：</label>
                            <select  name="region">
                                <option value="0" ${region==0?"selected":""}>请选择</option>
                                <option value="1" ${region==1?"selected":""}>华北区</option>
                                <option value="2" ${region==2?"selected":""}>华东区</option>
                                <option value="3" ${region==3?"selected":""}>华中区</option>
                                <option value="4" ${region==4?"selected":""}>华南区</option>
                                <option value="5" ${region==5?"selected":""}>西南区</option>
                                <option value="6" ${region==6?"selected":""}>西北区</option>
                                <option value="7" ${region==7?"selected":""}>东北区</option>
                                <option value="8" ${region==8?"selected":""}>港澳台</option>
                            </select>
                        </td>
                        <td></td>
                    </tr>

                </tbody>
            </table>
            <div class="subBar">
                <ul>
                    <li><div class="buttonActive"><div class="buttonContent"><button type="submit">查询</button></div></div></li>
                </ul>
            </div>
        </div>
    </form>
</div>
<div class="panelBar">
    <ul class="toolBar">
        <li><a class="icon" href="${ROOT}/admin/brand/club/createClubPage.do" rel="oclub_create" target="navTab"><span>创建品牌车友会</span></a></li>
        <li><a class="icon" href="${ROOT}/admin/brand/club/batchJoinClubPage.do" rel="oclub_batchJoin" target="navTab"><span>批量入驻品牌车友会</span></a></li>
    </ul>
</div>
<div class="pageContent">
    <table class="table" style="width: 100%" layoutH="186">
        <thead>
            <tr>
                <th >车友会ID</th>
                <th >车友会名称</th>
                <th >个性域名</th>
                <th >地区</th>
                <th >分区</th>
                <th >车系</th>
                <th >分类</th>
                <th orderField="memberNum" class="${orderField=='memberNum' ? orderDirection : ''}">会员人数</th>
                <th orderField="vipNum" class="${orderField=='vipNum' ? orderDirection : ''}">认证人数</th>
                <th orderField="createAt" class="${orderField=='createAt' ? orderDirection : ''}">创建时间</th>
                <th >状态</th>
                <th >操作</th>
            </tr>
        </thead>
        <tbody>
            <c:forEach var="e" items="${pager.resultList}">
                <tr>
                    <td>${e.oClubId}</td>
                    <td><a href="${OCLUBROOT}/${fn:escapeXml(e.url)}/" target="_blank">${fn:escapeXml(e.name)}</a></td>
                    <td>${fn:escapeXml(e.url)}</td>
                    <td>${fn:escapeXml(e.provinceName)}&nbsp;&nbsp;${fn:escapeXml(e.cityName)}</td>
                    <td>${fn:escapeXml(e.regionName)}</td>
                    <td>${fn:escapeXml(e.brandName)}&nbsp;&nbsp;${fn:escapeXml(e.seriesName)}</td>
                    <td>${e.tag.tagName}</td>
                    <td>${e.memberNum}</td>
                    <td>${e.vipNum}</td>
                    <td><fmt:formatDate value="${e.createAt}" pattern="yyyy-MM-dd HH:mm:ss"></fmt:formatDate></td>
                    <td>${e.status==0?"未发布":"发布"}</td>
                    <td> 
                        <a class="btnEdit" href="${ROOT}/admin/brand/club/updatePage.do?oClubId=${e.oClubId}"
                           target="navTab" rel="gift-detail" title="修改">修改</a>
                    </td>
                </tr>
            </c:forEach>
        </tbody>
    </table>
</div>
<div class="panelBar">
    <div class="pages">
        <span>共 ${pager.total} 条</span>
    </div>
    <div class="pagination" targetType="navTab" totalCount="${pager.total}" numPerPage="${pager.pageSize}" pageNumShown="10" currentPage="${pager.pageNo}"></div>
</div>
